WriteAxisProfileDeceleration
设定轴的曲线减速度 (Profile Deceleration)。
语法
KsError WriteAxisProfileDeceleration(
int Index,
int Value
);
参数
Index:轴的索引。索引以 0 为起始;别名将影响此参数。
Value:写入的值。
回传值
若此函式执行成功,会回传 errNoError
,否则会传回错误码。如需更多有关错误码的资讯,请参阅 KsError 清单。
备注
- 在周期回呼中使用,以更新轴的曲线减速度 (Profile Deceleration)。
-
此函式只能在手动模式中使用,请见 McControlMode 类型。
注意:曲线减速度 (Profile Deceleration) 仅在 EnableProfilePosition 启用时才可使用。
可用的 EtherCAT 状态
ecatOP
范例
复制
nRet = WriteAxisProfileDeceleration(0, 1000);
使用需求
RT | Win32 | |
---|---|---|
最低支援版本 | 4.0 | 4.0 |
标头档 | ksapi.h | ksapi.h |
程式库 | KsApi_Rtss.lib | KsApi.lib |
参见